package com.chw.common;

public class ChwTS {
    private Integer code;
    private String message;
    private Object data;
 public static ChwTS success(Object data){
     ChwTS chwTS=new ChwTS();
     chwTS.setCode(200);
     chwTS.setMessage("success");
     chwTS.setData(data);
     return chwTS;
 }
 public static  ChwTS error(Integer code ,String message){
        ChwTS chwTS=new ChwTS();
        chwTS.setCode(code);
        chwTS.setMessage(message);
        return chwTS;
 }
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
